//
//  BaseNavController.m
//  TableBarControllerDemo
//
//  Created by 边果互动 on 2021/3/15.
//

#import "BaseNavController.h"

@interface BaseNavController ()

@end

@implementation BaseNavController

//设置状态栏是否隐藏
- (BOOL)prefersStatusBarHidden {
    return NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    //设置状态栏是否隐藏
    //这个方法过时了，现在用上面的方法
//    [[UIApplication sharedApplication] setStatusBarHidden:NO];
    
    UINavigationBar *bar = [UINavigationBar appearance];
    //颜色
    bar.barTintColor = [UIColor whiteColor];
    bar.tintColor = Main_Label_color;
    
    bar.translucent = NO;
    [bar setTitleTextAttributes:
     @{NSFontAttributeName:[UIFont systemFontOfSize:18],
       NSForegroundColorAttributeName:Main_Label_color}];
    [bar setShadowImage:[UIImage new]];
    [bar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
